package com.xueyi.system.usageRecord.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.usageRecord.domain.dto.UsageRecordDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 使用记录 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_usage_record", excludeProperty = {"name", "sort"})
public class UsageRecordPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 使用对象id
     */
    @Excel(name = "使用对象id")
    @TableField("use_id")
    private Long useId;

    /**
     * 使用对象
     */
    @Excel(name = "使用对象")
    @TableField("use_objects")
    private String useObjects;

    /**
     * 使用日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "使用日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("use_date")
    private LocalDateTime useDate;


    /**
     * 领用人
     */
    @Excel(name = "领用人")
    @TableField("use_pople")
    private String usePople;

    /**
     * 领用数量
     */
    @Excel(name = "领用数量")
    @TableField("use_num")
    private String useNum;

    /**
     * 归还日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("repay_date")
    private LocalDateTime repayDate;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    public String getUsePople() {
        return usePople;
    }

    public void setUsePople(String usePople) {
        this.usePople = usePople;
    }

    public String getUseNum() {
        return useNum;
    }

    public void setUseNum(String useNum) {
        this.useNum = useNum;
    }

    public LocalDateTime getRepayDate() {
        return repayDate;
    }

    public void setRepayDate(LocalDateTime repayDate) {
        this.repayDate = repayDate;
    }

    public void setUseId(Long useId) {
        this.useId = useId;
    }

    public Long getUseId() {
        return useId;
    }

    public void setUseObjects(String useObjects) {
        this.useObjects = useObjects;
    }

    public String getUseObjects() {
        return useObjects;
    }

    public void setUseDate(LocalDateTime useDate) {
        this.useDate = useDate;
    }

    public LocalDateTime getUseDate() {
        return useDate;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
